public class DTGrid
| Constructor and Description |
|---|
DTGrid(BBjString filename!) |
DTGrid(DTCsvFile csv!) |
DTGrid(DTJsonObject json!) |
DTGrid(DTFileRecords fileRecords!, BBjString colData$) |
DTGrid(BBjTemplatedString rec!, BBjString colData$) |
DTGrid(BBjString rec$, BBjString colData$) |
DTGrid(DTCsvFile csv!, BBjString subTitle!) |
DTGrid(BBjString CompCode!, BBjString DDName!, BBjString GridID!) |
DTGrid(BBjString CompCode!, BBjString DDName!, BBjString GridID!, BBjString filename!) |
DTGrid(BBjString CompCode!, BBjString DDName!, BBjString GridID!, Boolean useNamespace!) |
DTGrid(BBjString CompCode!, BBjString DDName!, BBjString GridID!, BBjString filename!, BBjString template$) |
| Modifier and Type | Method and Description |
|---|---|
void | addBBjControl(BBjWindow win!) |
BBjWebComponent | addDwcTable(BBjWindow win!, BBjString height$, BBjString width$, Boolean sortable!) |
BBjGridExWidget | addGridEx(DWC dwc!) |
BBjGridExWidget | addGridEx(DWC dwc!, BBjNumber controlsHeight) |
BBjGridExWidget | addGridEx(DWC dwc!, BBjNumber controlsHeight, CustomObject rowOrCellSelectObject!, BBjString rowOrCellSelectMethod$)Add a GridExWidget and enable optional ROW_SELECT callback Pass controlsHeight% as pixels above the grid that cannot be used for Grid |
BBjGridExWidget | addGridEx(DWC dwc!, BBjNumber controlsHeight, CustomObject rowOrCellSelectObject!, BBjString rowOrCellSelectMethod$, BBjString RorC$)Add a GridExWidget and enable optional ROW_SELECT callback Pass controlsHeight% as pixels above the grid that cannot be used for Grid |
BBjGridExWidget | addGridEx(DWC dwc!, BBjWindow parentWin!)BBj REV 26 GridEx methods Create a GridExWidget with maximum size in the parent window |
BBjGridExWidget | addGridEx(DWC dwc!, BBjWindow parentWin!, BBjInt width%, BBjInt height%)Create a GridExWidget with specified width and/or height in the parent window |
BBjGridExWidget | addGridEx(DWC dwc!, BBjWindow parentWin!, BBjInt width%, BBjInt height%, BBjNumber startMs)Create a GridExWidget with elapsed time based on the starting time provided. Useful to include DTGrid building time Width and/or height can be passed as zero to maximize grid size |
BBjButton | addGridExButton(BBjString text$, CustomObject object!, BBjString method$)Add GridEx button with style based on button text |
BBjButton | addGridExButton(BBjString text$, CustomObject object!, BBjString method$, BBjString class$)Add GridEx button with specified style class |
void | closeGridExDialog(BBjEvent e!) |
void | computeRowsPerPage(BBjInt format%) |
void | computeRowsPerPage(BBjInt format%, BBjInt extra%, BBjInt gridRow%) |
void | destroyGridEx() |
void | destroyGridExDialog() |
void | DWCgridNavBtn(BBjButtonPushEvent e!) |
BBjVector | getAllRecords() |
Boolean | getCloseOnRowSelect() |
DTCols | getCols() |
static BBjString | getColumnLetter(BBjInt colno%) |
BBjVector | getColumnLetters() |
static BBjInt | getColumnNumber(BBjString columnLetter$) |
BBjVector | getColumnNumbers() |
BBjString | getDDcc() |
BBjString | getDDName() |
DTCols | getDTCols() |
BBjString | getElapsedTime(BBjNumber startMs) |
static JsonObject | getEntryGridData(DTJsonObject entryGridData!) |
static JsonObject | getEntryGridForm() |
static JsonObject | getEntryGridForm(BBjString saveButtonApi$) |
static JsonObject | getEntryGridForm(BBjString saveButtonApi$, BBjString saveButtonText$) |
static JsonObject | getEntryGridForm(BBjString saveButtonApi$, BBjString saveButtonText$, BBjString saveButtonIcon$, BBjString saveButtonColor$) |
BBjString | getErrMsg() |
BBjString | getExColString(BBjString fieldName$) |
BBjString | getExFieldName(BBjCustomEvent e!) |
BBjString | getFieldNameOrColno(BBjString fieldNameOrColno$) |
BBjString | getFieldNames() |
BBjString | getFileName() |
BBjString | getfilePosition() |
DTFileRecords | getFileRecords() |
JsonObject | getFirstPage() |
JsonObject | getFirstPageOnPopup() |
BBjVector | getFirstPageRecs() |
BBjString | getFooter() |
void | getGridDimensions()width and height of the grid so that the parent container window can be resized to fit. |
BBjWindow | getGridExBottomRow() |
BBjWindow | getGridExButtons() |
void | getGridExDimensions(DTJsonObject resultJson!) |
BBjString | getGridExSelectedCellField(BBjCustomEvent e!) |
BBjString | getGridExSelectedRowField(BBjString fieldName$) |
void | getGridExWinDimensions(DTJsonObject result!)Set window height and/or width if not specified at GridEx creation |
BBjChildWindow | getGridExWindow() |
BBjString | getGridID() |
BBjString | getGridRefNo() |
void | getHtmlTable(DTHtmlTable table!) |
JsonObject | getLastPage() |
BBjTemplatedString | getNewRec() |
BBjVector | getNewRowCols() |
JsonObject | getNextPage() |
BBjInt | getNumberOfCols() |
BBjInt | getNumberOfCsvRows() |
BBjInt | getNumberOfVisibleCols() |
JsonObject | getPage(BBjString page!) |
BBjString | getPresortedCol() |
BBjString | getPresortedDirection() |
JsonObject | getPrevPage() |
BBjTemplatedString | getRec() |
BBjInt | getRowCount() |
JsonObject | getSamePage() |
BBjString | getSelrtn() |
void | getStandardGrid(BBjStandardGrid bbjGrid!) |
void | getStandardGrid(BBjStandardGrid bbjGrid!, BBjWindow buttons!) |
void | getStandardGrid(BBjStandardGrid bbjgrid!, DTJsonObject j!) |
void | getStandardGrid(DTJsonObject j!) |
BBjString | getSubtitle() |
BBjString | getTemplate() |
BBjString | getType() |
BBjGridExWidget | gridExDialog(DWC dwc!) |
BBjGridExWidget | gridExDialog(DWC dwc!, BBjNumber startMs) |
void | gridExIsReady(BBjCustomEvent e!)When grid is ready, resize parent window and make grid window visible |
Boolean | hasFile() |
Boolean | hasNav() |
void | NavEx(BBjWebEvent e!) |
BBjString | newGridRow(BBjTemplatedString gridRec!) |
void | noFile() |
void | processAsyncScriptResult(BBjExecuteScriptEvent e!)Process responsem if response is for this grid, otherwise deliver to the appropriate grid via namespace |
void | processAsyncScriptResult(DTJsonObject resultJson!) |
void | processAsyncScriptResult(BBjNamespaceEvent e!)This is needed when there are multiple GridEx instances on the same page and the async script result is processed by a different grid |
void | refreshPageEx() |
void | refreshPageEx(BBjString page$) |
static DTGrid | retrieve(BBjString gridRefNo!) |
void | save() |
void | selectGridExRow(GxClientRowModel row!, BBjInt selected%)This method will set the _selected field to 0 or 1 typically to change the background color of the selected rows See setGridExSelectedRowClass to set the class that will be applied to selected rows, and the CSS for that class, which can include background color or other styling |
void | setAddRowButtonText(BBjString addRowButtonText!) |
void | setAddRowButtonToolTip(BBjString addRowButtonToolTip!) |
void | setApiRowSelect(BBjString apiRowSelect!) |
void | setCenterGrid(Boolean centerGrid!) |
void | setClientPagination(Boolean clientPagination!) |
void | setCloseOnRowSelect(Boolean closeOnRowSelect!) |
void | setCols(BBjString disp$) |
void | setCols(DTCols DTCols!) |
void | setCondition(BBjString condition!) |
void | setControlNumber(BBjString controlNumber!) |
void | setExtraButton(DTButton extraButton!) |
void | setFieldName(BBjString fieldName!) |
void | setFocus(Boolean setFocus!) |
void | setFooter(BBjString footer!) |
void | setGridExSelectedRowClass()Use default row highlight color |
void | setGridExSelectedRowClass(BBjString class$)This method will set a class to be applied to selected rows based on the value in the _SELECTED field, which can be set to 0 or 1 using the selectGridExRow method. This allows multiple rows to be marked as selected, and the class will be applied to those rows. The DWC.css style sheet includes a DWCselectdedRow class which displays the row with a light green background. |
void | setGridExWinDimensions() |
void | setGridExWindow(BBjChildWindow win!) |
void | setIsExpanded(Boolean isExpanded!) |
void | setIsSearchable(Boolean isSearchable!) |
void | setIsSortable(Boolean isSortable!) |
void | setKeyPre(BBjNumber kno, BBjString keyPre!) |
void | setKeyPre(BBjString keyPre!) |
void | setKnum(BBjNumber kno) |
void | setNewRowApi(BBjString newRowApi!) |
void | setNewRowCols(BBjVector cols!) |
void | setPageApi(BBjString pageApi!) |
void | setPresorted(BBjString col$, BBjString direction$) |
void | setRecordsLimit(BBjInt recordsLimit%) |
void | setRecsVector(BBjVector recsVector!) |
void | setRowAdd(Boolean enableRowAdd!) |
void | setRowDelete(Boolean enableRowDelete!) |
void | setRowEdit(Boolean enableRowEdit!) |
void | setRowEditApi(BBjString apiRowEdit!) |
void | setRowReorder(Boolean enableRowReorder!) |
void | setRowsPerPage(BBjInt rowsPerPage%) |
void | setSelectedColumn(BBjString fieldName$) |
void | setSelectedRowHexKey(BBjString hk$) |
void | setSelectOptions(BBjString where!) |
void | setSelectOptions(BBjString where!, BBjString sortby!) |
void | setSelectOptions(BBjString where!, BBjString sortby!, BBjString mode!) |
void | setSelrtn(BBjString selrtn!) |
void | setSubtitle(BBjString subtitle!) |
void | setTitle(BBjString title!) |
void | setTopPosition(Boolean topPosition!) |
void | setType(BBjString type!) |
void | showColumnTitles(Boolean showColumnTitles!) |
JsonObject | toJson(BBjVector recordsVector!, BBjVector colsVector!) |
JsonObject | toJson(BBjVector recordsVector!) |
JsonObject | toJsonObject(BBjVector recordsVector!, BBjVector colsVector!) |
JsonObject | toJsonObject(BBjVector recordsVector!) |
public DTGrid(BBjString filename!)public DTGrid(DTCsvFile csv!)public DTGrid(DTJsonObject json!)public DTGrid(DTFileRecords fileRecords!, BBjString colData$)
public DTGrid(BBjTemplatedString rec!, BBjString colData$)
public DTGrid(BBjString CompCode!, BBjString DDName!, BBjString GridID!, Boolean useNamespace!)
public void addBBjControl(BBjWindow win!)
public BBjWebComponent addDwcTable(BBjWindow win!, BBjString height$, BBjString width$, Boolean sortable!)
public BBjGridExWidget addGridEx(DWC dwc!)public BBjGridExWidget addGridEx(DWC dwc!, BBjNumber controlsHeight)public BBjGridExWidget addGridEx(DWC dwc!, BBjNumber controlsHeight, CustomObject rowOrCellSelectObject!, BBjString rowOrCellSelectMethod$)
Add a GridExWidget and enable optional ROW_SELECT callback Pass controlsHeight% as pixels above the grid that cannot be used for Grid
public BBjGridExWidget addGridEx(DWC dwc!, BBjNumber controlsHeight, CustomObject rowOrCellSelectObject!, BBjString rowOrCellSelectMethod$, BBjString RorC$)
Add a GridExWidget and enable optional ROW_SELECT callback Pass controlsHeight% as pixels above the grid that cannot be used for Grid
public BBjGridExWidget addGridEx(DWC dwc!, BBjWindow parentWin!)BBj REV 26 GridEx methods Create a GridExWidget with maximum size in the parent window
public BBjGridExWidget addGridEx(DWC dwc!, BBjWindow parentWin!, BBjInt width%, BBjInt height%)Create a GridExWidget with specified width and/or height in the parent window
public BBjGridExWidget addGridEx(DWC dwc!, BBjWindow parentWin!, BBjInt width%, BBjInt height%, BBjNumber startMs)Create a GridExWidget with elapsed time based on the starting time provided. Useful to include DTGrid building time Width and/or height can be passed as zero to maximize grid size
public BBjButton addGridExButton(BBjString text$, CustomObject object!, BBjString method$)
Add GridEx button with style based on button text
public BBjButton addGridExButton(BBjString text$, CustomObject object!, BBjString method$, BBjString class$)
Add GridEx button with specified style class
public void closeGridExDialog(BBjEvent e!)public void computeRowsPerPage(BBjInt format%)
public void computeRowsPerPage(BBjInt format%, BBjInt extra%, BBjInt gridRow%)
public void destroyGridEx()
public void destroyGridExDialog()
public void DWCgridNavBtn(BBjButtonPushEvent e!)public BBjVector getAllRecords()public Boolean getCloseOnRowSelect()
public DTCols getCols()public static BBjString getColumnLetter(BBjInt colno%)public BBjVector getColumnLetters()public static BBjInt getColumnNumber(BBjString columnLetter$)public BBjVector getColumnNumbers()public BBjString getDDcc()public BBjString getDDName()public DTCols getDTCols()public BBjString getElapsedTime(BBjNumber startMs)public static JsonObject getEntryGridData(DTJsonObject entryGridData!)
public static JsonObject getEntryGridForm()public static JsonObject getEntryGridForm(BBjString saveButtonApi$)
public static JsonObject getEntryGridForm(BBjString saveButtonApi$, BBjString saveButtonText$)
public static JsonObject getEntryGridForm(BBjString saveButtonApi$, BBjString saveButtonText$, BBjString saveButtonIcon$, BBjString saveButtonColor$)
public BBjString getErrMsg()public BBjString getExFieldName(BBjCustomEvent e!)
public BBjString getFieldNames()public BBjString getFileName()public BBjString getfilePosition()public DTFileRecords getFileRecords()public JsonObject getFirstPage()public JsonObject getFirstPageOnPopup()public BBjVector getFirstPageRecs()public BBjString getFooter()public void getGridDimensions()
width and height of the grid so that the parent container window can be resized to fit.
public BBjWindow getGridExBottomRow()public BBjWindow getGridExButtons()public void getGridExDimensions(DTJsonObject resultJson!)public BBjString getGridExSelectedCellField(BBjCustomEvent e!)
public void getGridExWinDimensions(DTJsonObject result!)Set window height and/or width if not specified at GridEx creation
public BBjChildWindow getGridExWindow()public BBjString getGridID()public BBjString getGridRefNo()public void getHtmlTable(DTHtmlTable table!)public JsonObject getLastPage()public BBjTemplatedString getNewRec()public BBjVector getNewRowCols()public JsonObject getNextPage()public BBjInt getNumberOfCols()
public BBjInt getNumberOfCsvRows()
public BBjInt getNumberOfVisibleCols()
public JsonObject getPage(BBjString page!)
public BBjString getPresortedCol()public BBjString getPresortedDirection()public JsonObject getPrevPage()public BBjTemplatedString getRec()public BBjInt getRowCount()
public JsonObject getSamePage()public BBjString getSelrtn()public void getStandardGrid(BBjStandardGrid bbjGrid!)
public void getStandardGrid(BBjStandardGrid bbjGrid!, BBjWindow buttons!)
public void getStandardGrid(BBjStandardGrid bbjgrid!, DTJsonObject j!)public void getStandardGrid(DTJsonObject j!)public BBjString getSubtitle()public BBjString getTemplate()public BBjString getType()public BBjGridExWidget gridExDialog(DWC dwc!)public BBjGridExWidget gridExDialog(DWC dwc!, BBjNumber startMs)public void gridExIsReady(BBjCustomEvent e!)When grid is ready, resize parent window and make grid window visible
public Boolean hasFile()
public Boolean hasNav()
public void NavEx(BBjWebEvent e!)public BBjString newGridRow(BBjTemplatedString gridRec!)
public void noFile()
public void processAsyncScriptResult(BBjExecuteScriptEvent e!)Process responsem if response is for this grid, otherwise deliver to the appropriate grid via namespace
public void processAsyncScriptResult(DTJsonObject resultJson!)public void processAsyncScriptResult(BBjNamespaceEvent e!)This is needed when there are multiple GridEx instances on the same page and the async script result is processed by a different grid
public void refreshPageEx()
public void refreshPageEx(BBjString page$)public void save()
public void selectGridExRow(GxClientRowModel row!, BBjInt selected%)
This method will set the _selected field to 0 or 1 typically to change the background color of the selected rows See setGridExSelectedRowClass to set the class that will be applied to selected rows, and the CSS for that class, which can include background color or other styling
public void setAddRowButtonText(BBjString addRowButtonText!)public void setAddRowButtonToolTip(BBjString addRowButtonToolTip!)public void setApiRowSelect(BBjString apiRowSelect!)public void setCenterGrid(Boolean centerGrid!)
public void setClientPagination(Boolean clientPagination!)
public void setCloseOnRowSelect(Boolean closeOnRowSelect!)
public void setCols(BBjString disp$)public void setCondition(BBjString condition!)public void setControlNumber(BBjString controlNumber!)public void setExtraButton(DTButton extraButton!)public void setFieldName(BBjString fieldName!)public void setFocus(Boolean setFocus!)
public void setFooter(BBjString footer!)public void setGridExSelectedRowClass()
Use default row highlight color
public void setGridExSelectedRowClass(BBjString class$)This method will set a class to be applied to selected rows based on the value in the _SELECTED field, which can be set to 0 or 1 using the selectGridExRow method. This allows multiple rows to be marked as selected, and the class will be applied to those rows. The DWC.css style sheet includes a DWCselectdedRow class which displays the row with a light green background.
public void setGridExWinDimensions()
public void setGridExWindow(BBjChildWindow win!)
public void setIsExpanded(Boolean isExpanded!)
public void setIsSearchable(Boolean isSearchable!)
public void setIsSortable(Boolean isSortable!)
public void setKeyPre(BBjNumber kno, BBjString keyPre!)public void setKeyPre(BBjString keyPre!)public void setKnum(BBjNumber kno)
public void setNewRowApi(BBjString newRowApi!)public void setNewRowCols(BBjVector cols!)
public void setPageApi(BBjString pageApi!)public void setRecordsLimit(BBjInt recordsLimit%)
public void setRecsVector(BBjVector recsVector!)
public void setRowAdd(Boolean enableRowAdd!)
public void setRowDelete(Boolean enableRowDelete!)
public void setRowEdit(Boolean enableRowEdit!)
public void setRowEditApi(BBjString apiRowEdit!)public void setRowReorder(Boolean enableRowReorder!)
public void setRowsPerPage(BBjInt rowsPerPage%)
public void setSelectedColumn(BBjString fieldName$)public void setSelectedRowHexKey(BBjString hk$)public void setSelectOptions(BBjString where!)public void setSelectOptions(BBjString where!, BBjString sortby!, BBjString mode!)
public void setSelrtn(BBjString selrtn!)public void setSubtitle(BBjString subtitle!)public void setTitle(BBjString title!)public void setTopPosition(Boolean topPosition!)
public void setType(BBjString type!)public void showColumnTitles(Boolean showColumnTitles!)
public JsonObject toJson(BBjVector recordsVector!, BBjVector colsVector!)public JsonObject toJson(BBjVector recordsVector!)public JsonObject toJsonObject(BBjVector recordsVector!, BBjVector colsVector!)public JsonObject toJsonObject(BBjVector recordsVector!)